package hos.demo;

import android.app.Application;

import com.blankj.utilcode.util.Utils;

import hos.core.AppCompat;


/**
 * <p>Title: App </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2022/4/3 10:17
 */
public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
        AppCompat.init(this);
//        String logDir = PathUtils.getExternalAppFilesPath();
//        if (logDir == null) {
//            logDir = PathUtils.getExternalAppCachePath();
//            if (logDir == null) {
//                logDir = PathUtils.getExternalDcimPath();
//                if (logDir == null) {
//                    logDir = PathUtils.getInternalAppFilesPath();
//                }
//            }
//        }
//        logDir = logDir + File.separator + "log";
//        CrashAndroid.init(this, logDir, new hos.java.util.CrashUtils.OnCrashListener() {
//            @Override
//            public void onCrash(String crashFile, String time, String info) {
//                FileIOUtils.writeFileFromString(crashFile, info, true);
//            }
//        });
    }
}
